import request from '@/common/request'

export default {
  download(url) {
    let form = {
      action: "download"
    }
    return request.post(url, form)
  },
  upload(url, data, force = false) {
    let form = {
      action: "upload",
      data, force
    }
    return request.post(url, form)
  }
}